package com.dating.entities;

import android.graphics.Bitmap;
import android.location.Location;

import com.dating.libs.client.parttern.asa.ADbObject;

public class Her  extends ADbObject{
	public Bitmap _bmp=null;
	public boolean _status=false;	//Online/Offline
	public double _distance=-1;
	public String _lastLogin="";
	//fields
	public String _email = "email";
	public String _phone = "phone";
	public String _gender = "gender";
	public String _address = "address";
	public String _birthday = "birthday";
	public String _fullname = "fullname";
	public String _latitude = "latitude";
	public String _nickname = "nickname";
	public String _category = "category";
	public String _longitude = "longitude";
	public String _link_image = "link_image";
	public String _id_username = "id_username";
	public String _type_account = "type_account";
	public String _current_address = "curent_address";
	
	public Her(int index, String... values) {
		super(index, values);
		
		this._id_username=values[0];
		this._fullname=values[1];
		this._gender=values[2];
		this._birthday=values[3];
		this._email=values[4];
		this._link_image=values[5];
		this._type_account=values[6];
		this._address=values[7];
		this._latitude=values[8];
		this._longitude=values[9];
		this._current_address=values[10];
		this._phone=values[11];
		this._nickname=values[12];
		this._category=values[13];
	}
	public Her(int index) {
		super(index, "","","","","","","","","","","","","","");
		
		this._id_username=values[0];
		this._fullname=values[1];
		this._gender=values[2];
		this._birthday=values[3];
		this._email=values[4];
		this._link_image=values[5];
		this._type_account=values[6];
		this._address=values[7];
		this._latitude=values[8];
		this._longitude=values[9];
		this._current_address=values[10];
		this._phone=values[11];
		this._nickname=values[12];
		this._category=values[13];
	}
	public boolean isOnline(){
		return _status;
	}
	public void setOnline(boolean isOnline){
		_status=isOnline;
	}
	public Location getLocation(){
		Location _location=new Location(this._fullname);
		_location.setLatitude(0);
		_location.setLongitude(0);
		_location.setLatitude(Double.parseDouble(this._latitude));
		_location.setLongitude((Double.parseDouble(this._longitude)));
		return _location;
	}
	public double getDistance(Location src,Location dst){
		return src.distanceTo(dst);
	}
	// get-set
	public boolean is_status() {
		return _status;
	}
	public void set_status(boolean _status) {
		this._status = _status;
	}
	public double get_distance() {
		return _distance;
	}
	public void set_distance(double _distance) {
		this._distance = _distance;
	}
	public String get_lastLogin() {
		return _lastLogin;
	}
	public void set_lastLogin(String _lastLogin) {
		this._lastLogin = _lastLogin;
	}
	public String get_email() {
		return _email;
	}
	public void set_email(String _email) {
		super.values[4]=_email;
		this._email = _email;
	}
	public String get_phone() {
		return _phone;
	}
	public void set_phone(String _phone) {
		super.values[11]=_phone;
		this._phone = _phone;
	}
	public String get_gender() {
		return _gender;
	}
	public void set_gender(String _gender) {
		super.values[2]=_gender;
		this._gender = _gender;
	}
	public String get_address() {
		return _address;
	}
	public void set_address(String _address) {
		super.values[7]=_address;
		this._address = _address;
	}
	public String get_birthday() {
		return _birthday;
	}
	public void set_birthday(String _birthday) {
		super.values[3]=_birthday;
		this._birthday = _birthday;
	}
	public String get_fullname() {
		return _fullname;
	}
	public void set_fullname(String _fullname) {
		super.values[1]=_fullname;
		this._fullname = _fullname;
	}
	public String get_latitude() {
		return _latitude;
	}
	public void set_latitude(String _latitude) {
		super.values[8]=_latitude;
		this._latitude = _latitude;
	}
	public String get_nickname() {
		return _nickname;
	}
	public void set_nickname(String _nickname) {
		super.values[12]=_nickname;
		this._nickname = _nickname;
	}
	public String get_category() {
		return _category;
	}
	public void set_category(String _category) {
		super.values[13]=_category;
		this._category = _category;
	}
	public String get_longitude() {
		return _longitude;
	}
	public void set_longitude(String _longitude) {
		super.values[9]=_longitude;
		this._longitude = _longitude;
	}
	public String get_link_image() {
		return _link_image;
	}
	public void set_link_image(String _link_image) {
		super.values[5]=_link_image;
		this._link_image = _link_image;
	}
	public String get_id_username() {
		return _id_username;
	}
	public void set_id_username(String _id_username) {
		super.values[0]=_id_username;
		this._id_username = _id_username;
	}
	public String get_type_account() {
		return _type_account;
	}
	public void set_type_account(String _type_account) {
		super.values[6]=_type_account;
		this._type_account = _type_account;
	}
	public String get_current_address() {
		return _current_address;
	}
	public void set_current_address(String _current_address) {
		super.values[10]=_current_address;
		this._current_address = _current_address;
	}
	
}
